/*
 * @message: 描述
 * @Author: Roy
 * @Email: cx_love_xc@163.com
 * @Github: cx_love_xc@163.com
 * @Date: 2022-01-17 17:12:05
 * @LastEditors: Roy
 * @LastEditTime: 2022-01-17 17:12:14
 * @Deprecated: 否
 * @FilePath: /blog/src/setupProxy.js
 */
const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(
        '/api',
        createProxyMiddleware({
            target: 'http://localhost:7001',
            changeOrigin: true,
        })
    );
};